{% if platforms %}
<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
 	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="x-ua-compatible" content="ie=edge">
	<link rel="icon" href="https://jscdn.com.cn/highcharts/images/favicon.ico">
	<meta name="description" content="">
	<title>策略业绩</title>
	<style>
	#csv {
	display: none;
}
	</style>
	<script src="https://code.highcharts.com.cn/jquery/jquery-1.8.3.min.js"></script>
	<script src="https://code.highcharts.com.cn/highcharts/highcharts.js"></script>
	<script src="https://code.highcharts.com.cn/highcharts/modules/data.js"></script>
</head>
<body>
<div id="container" style="height: 400px; min-width: 310px"></div>

      <script>
        $.get("{{ url_for('static', filename = 'cum_returns_211768.csv') }}", function(csv) {
          var chart = Highcharts.chart('container', {
            chart: {
              type: 'line'
            },
            data: {
              csv: csv // 指定 CSV 数据
            },
            title: {
              text: '累计收益率图'
            },
            yAxis: {
              title: {
                text: '累计收益率'
              }
            },
            credits: {
              text: '长颈鹿投资'
            }
          });
        });

      </script>
</body>
</html>
<!--{% if platforms %}-->
        <!--/home/admin/fmz-btc-strategy/cum_returns_202803.csv
        <script src="http://code.highcharts.com.cn/highstock/8.1.2/highcharts-more.js"></script>
        <script src="http://code.highcharts.com.cn/highstock/8.1.2/modules/export-data.js"></script>
        <script src="http://code.highcharts.com.cn/highstock/8.1.2/modules/full-screen.js"></script>
        <script src="http://code.highcharts.com.cn/highstock/8.1.2/modules/heatmap.js"></script>
        <script src="http://code.highcharts.com.cn/highstock/8.1.2/modules/histogram-bellcurve.js"></script>
        <script src="http://code.highcharts.com.cn/highstock/8.1.2/themes/dark-unica.js"></script>
        <script src="http://code.highcharts.com.cn/highstock/8.1.2/css/themes/dark-unica.css"></script>
        $.get("{{ url_for('static', filename = 'cum_returns_202803.csv') }}",function(csv) {
            });
                    xAxis : {
                        type : 'datetime'
                    },
                    title: {
                        text: '累计收益率图'
                    },
                    yAxis: {
                        title: {
                            text: '累计收益率'
                        },
                        max: 15000,
                    }
            });
        });
        -->
<!-- 图表容器 DOM -->
{% else %}
<div class="alert alert-danger" role="alert" style="margin-top:20px">
    <a href="/exchanges">你好, 还没有绑定任何资产, 点击进行资产绑定 !</a>
</div>
{% endif %}